<template>
  <div class="headerSearch">
    <div class="center">
      <div class="logo">
        <img src="./img/logo2x.png" alt="logo">
      </div>
      <div class="search">
        <div class="search-border">
          <div class="search-img">
            <img src="./img/search2x.png" alt="">
          </div>
          <input type="text" placeholder="搜索产品名称">
          <button type="button" class="search-button">搜索</button>
        </div>
      </div>
      <!-- <div class="cart">
        <div class="cart-Icon">
          <img src="./img/cart2x.png" alt="">
        </div>
        <div class="cart-wird">
          我的购物车
          <span class="cart-number">(3)</span>
        </div>
      </div> -->
    </div>
  </div>
</template>

<script>

export default {
    name: 'headerSearch',
    data() {
      return {
      }
    }
  }
</script>
<style scoped lang="scss">
.headerSearch {
  margin: 20px 0;
  .center {
    display: flex;
    justify-content: space-between;
    width: 84%;
    margin: 0 auto;
    .logo {
      width: 20%;
      img {
        width: 100%;
        min-height: 46px;
      }
    }
    .search {
      width: 60%;
      .search-border {
        width: 90%;
        height: 80%;
        margin: 0 auto;
        border: 2px solid $mate-color;
        border-radius: 100px;
        overflow: hidden;
        display: flex;
        justify-content: space-between;
        .search-img {
          margin: 0 2% 0 4%;
          display: flex;
          align-items: center;
          img {
            width: 20px;
            height: 20px;
          }
        }
        input {
          height: 100%;
          width: 80%;
          border: none;
          outline: 0;
          font-size: 16px;
        }
        .search-button {
          font-size: 14px;
          width: 80px;
          font-weight: 700;
          color: #FFF;
          outline: 0;
          background: $mate-color;
          cursor: pointer;
          border: none;
        }
      }
    }
    .cart {
      width: 20%;
      display: flex;
      align-items: center;
      .cart-Icon {
        width: 20px;
        height: 20px;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .cart-wird {
        color: #252525;
        font-size: 14px;
        margin-left: 6%;
        cursor: pointer;
        .cart-number {
          color: $mate-color;
        }
      }
    }
  }
}
</style>
